window._erp_router = {
    'index': {
        url: "/index",
        templateUrl: "views/index.html",
        controller: "ApplicationCtrl"
    },

    'main': {
        url: "/main",
        templateUrl: "views/main.html",
        controller: "MainCtrl"
    },
    'about': {
        url: "/about",
        templateUrl: "views/about.html",
        controller: "AboutCtrl"
    },

    //=======授权 start======
    'auth': {
        url: "/auth",
        template: "<div ui-view></div>",
        controller: "AuthCtrl"
    },
    'auth.reg': {
        url: "/reg",
        templateUrl: "views/auth.reg.html",
    },
    //=======授权 end======
    //=======店铺 start====
    'item':{
        url:"/item",
        controller:"GoodsCtrl",
        template:"<div ui-view></div>",
    },
    'item.info':{
        url:"/info",
        controller:"GoodsCtrl",
        templateUrl:"views/buyer.item.info.html",
    },
    //=======店铺 end======
    //=======商品详情 start======

    //=======商品详情 end========
   
    //=======登录 start======
    'login':{
        url:"/login",
        template:"<div ui-view></div>"
    },
    //=======登录 end  ======
    //注册=============
    'login.register':{
        url:"/register",
        controller:"ApplicationCtrl",
        templateUrl:"views/login.register.html"
    },
    'login.update':{
        url:"/update",
        controller:"ApplicationCtrl",
        templateUrl:"views/login.pwupdate.html"
    },
    //注册
    //========用户 start=========
    'user':{
        url:"/user",
        controller:"",
        template:"<div ui-view></div>"
    },
    'user.list':{
        url:"/list",
        controller:"UserCtrl",
        templateUrl:"views/user.list.html"
    },
    //========用户 end  =========
    //========地址管理 start=====
    'address':{
        url:"/address",
        controller:"AddressCtrl",
        template:"<div ui-view></div>",
    },
    'address.list':{
        url:"/list",
        controlleer:"AddressCtrl",
        templateUrl:"views/address.list.html"
    },
    'address.add':{
        url:"/add",
        controller:"AddressCtrl",
        templateUrl:"views/address.html"
    },
    //========地址管理 end=======
    //========店铺  start =======
    'shop':{
        url:"/shop",
        controller:"ShopCtrl",
        template:"<div ui-view></div>",
    },
    'shop.list':{
        url:"/list",
        controller:"ShopCtrl",
        templateUrl:"views/shop.html"
    },
    //========店铺  end==========
    //========收藏  start========
    'favorites':{
        url:"/favorites",
        template:"<div ui-view></div>",
    },
    'favorites.list':{
        url:"/list",
        controller:"FavoritesCtrl",
        templateUrl:"views/favorites.list.html"
    },
    //========收藏  end  ========
    'shoppingcart':{
        url:"/shoppingcart",
        template:"<div ui-view></div>",
    },
    'shoppingcart.list':{
        url:"/list",
        controller:"ShoppingcartCtrl",
        templateUrl:"views/shoppingcart.list.html"
    },
    'buy':{
        url:"/buy",
        template:"<div ui-view></div>"
    },
    'buy.add':{
        url:"/add",
        controller:"BuyCrtl",
        templateUrl:"views/buy.add.html"
    },
    'buy.choice':{
        url:"/choice",
        controller:"BuyCrtl",
        templateUrl:"views/buy.choiceAddress.html"
    },
    'buy.payconfirm':{
        url:"/payconfirm",
        controller:"BuyCrtl",
        templateUrl:"views/order.confirmPay.html",
    },
    'buy.paysuccess':{
        url:"/paysuccess",
        controller:"BuyCrtl",
        templateUrl:"views/pay.success.html"
    },
    'order':{
        url:"/order",
        controller:"OrderCtrl",
        template:"<div ui-view></div>",
    },
    "order.list":{
        url:"/list",
        controller:"OrderCtrl",
        templateUrl:"views/buyer.order.list.html"
    },
    'order.details':{
        url:"/details",
        controller:"OrderCtrl",
        templateUrl:"views/order.details.html"
    },
    "review":{
        url:"/review",
        controller:"OrderCtrl",
        template:"<div ui-view></div>"
    },
    "review.add":{
        url:"/add",
        controller:"OrderCtrl",
        templateUrl:"views/review.add.html"
    }

}